package com.bbcare.oms.plat.store.ibatis;

import com.bbcare.oms.plat.entity.IaLoginoprRecord;
import java.util.List;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

@CacheNamespace(readWrite=true)
public abstract interface IALoginOprDAO
{
  @Select({"select * from ia_loginopr_record where id=#{id}"})
  public abstract IaLoginoprRecord select(String paramString)
    throws Exception;
  
  @Select({"select * from ia_loginopr_record limit #{start},#{rows}"})
  public abstract List<IaLoginoprRecord> query(@Param("start") int paramInt1, @Param("rows") int paramInt2)
    throws Exception;
  
  @Insert({"insert into ia_loginopr_record(id,create_time,create_author,update_time,update_author,remark,role_id,account_id,project_id,app_id,tenant_id,ip_address) values(#{id},#{createTime},#{createAuthor},#{updateTime},#{updateAuthor},#{remark},#{roleId},#{accountId},#{projectId},#{appId},#{tenantId},#{ipAddress})"})
  public abstract int insertLoginopr(IaLoginoprRecord paramIaLoginoprRecord);
  
  @Select({"select * from ia_loginopr_record where role_id=#{0} and tenant_id=#{1} ORDER BY UPDATE_time desc limit 0,1"})
  @Results({@org.apache.ibatis.annotations.Result(property="createTime", column="create_time"), @org.apache.ibatis.annotations.Result(property="createAuthor", column="create_author"), @org.apache.ibatis.annotations.Result(property="updateTime", column="update_time"), @org.apache.ibatis.annotations.Result(property="updateAuthor", column="update_author"), @org.apache.ibatis.annotations.Result(property="roleId", column="role_id"), @org.apache.ibatis.annotations.Result(property="accountId", column="account_id"), @org.apache.ibatis.annotations.Result(property="projectId", column="project_id"), @org.apache.ibatis.annotations.Result(property="appId", column="app_id"), @org.apache.ibatis.annotations.Result(property="tenantId", column="tenant_id")})
  public abstract IaLoginoprRecord queryByroleId(String paramString1, String paramString2)
    throws Exception;
}


/* Location:              C:\Users\ZCL\Desktop\oms\oms\oms\WEB-INF\classes\com.zip!\com\bbcare\oms\plat\store\ibatis\IALoginOprDAO.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */